package cn.xmy.demo01.service.impl;

import cn.xmy.demo01.dao.ForumDao;
import cn.xmy.demo01.pojo.Forum;
import cn.xmy.demo01.service.ForumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
@Service
public class ForumServiceImpl implements ForumService {
    @Autowired
    ForumDao forumDao;
    @Override
    public int addForum(Forum forum) throws SQLException, ClassNotFoundException {
        return forumDao.addForum(forum);
    }
}
